go cd "Text Fields" of stack "Intro to HyperCard 2.0"
end goBack
on closeCard
repeat with n = 1 to 3
hide cd fld ("info" & n)
end repeat
put empty into cd fld "whatWasSelected"
end closeCard
on doHotAnimation
set cursor to none
repeat for 2
repeat with n = 1 to 5
show btn ("fire" & n)
wait 4
hide btn ("fire" & n)
wait 3
end repeat
end repeat
end doHotAnimation
-- part 2 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=64 top=83 right=287 bottom=411
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 14
-- style flags: 0
-- line height: 14
-- part name:
----- HyperTalk script -----
on mouseUp
lock screen
set the lockText of the target to false
click at the clickLoc
click at the clickLoc
put the selection into whatSelected
set the lockText of the target to true
unlock screen
put "You clicked “" & whatSelected & "”." into cd fld "whatWasSelected"
if whatSelected = "locked" then show cd fld "info1"
if whatSelected = "information" then show cd fld "info2"
end mouseUp
-- part 26 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=289 top=97 right=112 bottom=337
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 14
-- style flags: 256
-- line height: 14
-- part name:
----- HyperTalk script -----
on mouseUp
put "You clicked: “HOT”" into cd fld "WhatWasSelected"
doHotAnimation
end mouseUp
-- part 3 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=66 top=272 right=298 bottom=410
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 12
-- style flags: 0
-- line height: 18
-- part name: whatWasSelected
----- HyperTalk script -----
on mouseUp
if 2 = 1 then
end if
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=66 top=249 right=266 bottom=386
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put "You clicked “CLICK ON THE WORDS ABOVE FOR EXAMPLES”" into cd fld "WhatWasSelected"
end mouseUp
-- part 8 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=66 top=84 right=265 bottom=411
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 14
-- style flags: 0
-- line height: 15
-- part name: info2
----- HyperTalk script -----
on mouseUP
hide me
end mouseUp
-- part 11 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=335 top=83 right=98 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 14
-- style flags: 256
-- line height: 14
-- part name:
----- HyperTalk script -----
on mouseUp
put "You clicked: “locked”" into cd fld "WhatWasSelected"
show cd fld "info1"
end mouseUp
-- part 12 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=63 top=195 right=214 bottom=345
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 14
-- style flags: 256
-- line height: 14
-- part name:
----- HyperTalk script -----
on mouseUp
put "You clicked “You can also “group” words in HyperCard.”" into cd fld "WhatWasSelected"
show cd fld "info3"
end mouseUp
-- part 13 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=65 top=167 right=184 bottom=154
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 14
-- style flags: 0
-- line height: 14
-- part name:
----- HyperTalk script -----
on mouseUp
put "You clicked “pronunciation”." into cd fld "whatWasSelected"
play "pronunciation"
end mouseUp
-- part 10 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=66 top=84 right=265 bottom=411
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 14
-- style flags: 0
-- line height: 15
-- part name: info3
----- HyperTalk script -----
on mouseUP
hide me
end mouseUp
-- part 20 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=296 top=84 right=124 bottom=331
-- title width / last selected line: 0
-- icon id / first selected line: 6812 / 6812
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: fire1
-- part 21 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=296 top=84 right=124 bottom=331
-- title width / last selected line: 0
-- icon id / first selected line: 17401 / 17401
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: fire2
-- part 22 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=296 top=84 right=124 bottom=331
-- title width / last selected line: 0
-- icon id / first selected line: 13836 / 13836
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: fire3
-- part 23 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=296 top=84 right=124 bottom=331
-- title width / last selected line: 0
-- icon id / first selected line: 26701 / 26701
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: fire4
-- part 24 (button)
-- low flags: 80
-- high flags: 0000
-- rect: left=296 top=84 right=124 bottom=331
-- title width / last selected line: 0
-- icon id / first selected line: 13705 / 13705
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: fire5
-- part 5 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=66 top=84 right=265 bottom=411
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 174
-- text size: 14
-- style flags: 0
-- line height: 15
-- part name: info1
----- HyperTalk script -----
on mouseUP
hide me
end mouseUp
-- part contents for background part 1
----- text -----
-- part contents for card part 2
----- text -----
In HyperCard, you can make text fields be “locked”. Then, all the words in the field are “HOT”: whenever someone clicks a word in the field, HyperCard knows what word the user clicked. You can have HyperCard respond to a user’s clicks with more information, or a definition of the word clicked, or even the pronunciation of the word.
You can also “group” words in HyperCard: you can specify two or more words that HyperCard will treat as one when the user clicks the words.
CLICK ON THE WORDS ABOVE FOR EXAMPLES...
-- part contents for card part 5
----- text -----
When a text field is locked, you can no longer type into it—instead, you can click on it, and it can cause the same sorts of actions as buttons can.
CLICK HERE TO HIDE THIS FIELD.
-- part contents for card part 8
----- text -----
You could use this feature of HyperCard to provide immediate glossary information for the words in a text, or commentary on the words of a poem.
In a stack for language practice, you could use this feature to give the translation of a phrase, or the forms of a verb, or the proper pronunciation of an expression.
CLICK HERE TO HIDE THIS FIELD.
-- part contents for card part 10
----- text -----
You can group names and expressions. For example:
Martha Washington
Martha & the Vandellas
Martha of the Prairies
Then, when a user clicks any one of the words, you can have HyperCard respond with information about the whole expression.